import request from '@/utils/request';

/**
 * 积分订单列表
 * @param query 
 * @returns 
 */
export const listPage = (query) => {
  return request({
    url: '/sellerOrder/list',
    method: 'get',
    params: query
  });
};

/**
 * 详情
 * @param query 
 * @returns 
 */
export const info = (query) => {
  return request({
    url: `/sellerOrder/detail/${query.id}`,
    method: 'get',
  });
};
// 优惠金额统计
export const priceCount = (query) => {
  return request({
    url: `/sellerOrder/discount/statistics`,
    method: 'get',
    params: query
  });
};
// 实付金额
export const payPriceCount = (query) => {
  return request({
    url: `/sellerOrder/price/statistics`,
    method: 'get',
    params: query
  });
};

// 发货
// export const sendApi = (query) => {
//   return request({
//     url: `/sellerOrder/deliver`,
//     method: 'post',
//     data: query
//   });
// };